import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Index from '@/components/index/index'
import Login from '@/components/login/login'
import Edit from '@/components/edit/edit'
import List from '@/components/list/list'
import Regi from '@/components/registor/registor'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Index,
      children: [
         {
          path: '/',
          name: 'index',
          component: List
        },
        {
          path: 'profile',
          component: Login
        }
      ]
    },
    {
      path: '/edit',
      name: 'eidt',
      component: Edit,
    },
    {
      path: '/regi',
      name: 'regi',
      component: Regi,
    },
  
  ]
})
